package lab01;

/**
 * Created by lenovo on 2017/9/29.
 */
public class Test05 {
    public static void main(String[] args) {
        int i,sum=0;
        for (i=1;i<=100;i++){
            sum=i+sum;
        }
        System.out.println(sum+".");
        sum=0;i=1;
        while(i<=100){
            sum=i+sum;
            i=i++;
        }
        System.out.println(sum);
        sum=0;i=1;
        do {
            sum=i+sum;
            i=i++;
        }while (i<=100);
    }
}
